Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
q3-core-access
Advanced tools
Q3's access control system integrates with Mongoose for role-based querying. It also connects to `q3-core-rest` to automate authorization in the request and response payloads.
Q3's access control system integrates with Mongoose for
role-based querying. It also connects to q3-core-rest
to
automate authorization in the request and response payloads.
Note that the access control's ledger uses a singleton pattern so that grants initialized at run-time can be referenced anywhere. It also relies on a static array, so changes made to permissions will be lost on reboot.
Q3 API automatically loads grants when it detects the q3-access.json file, so most projects will have little else to configure.
The JSON object below represents all possible fields.
{
"fields": ["*"],
"role": "Developer",
"coll": "tests",
"op": "Read",
"ownership": "Any",
"documentConditions": [],
"ownershipAliases": [],
"ownershipAliasesOnly": false,
"ownershipAliasesWith": false,
"ownershipConditions": []
}
The field property determines the attributes within a document a user can access. When left undefined, everything is disallowed. This module interprets fields as globs so that we can define rules and cover datasets. It can support a single rule, an array of rules and conditional rules. For examples, please see below.
The field below will only grant access to the foo and bar properties. Everything else will be ignored.
{
"fields": "{foo,bar}"
}
The field below will not grant access to the foo and bar properties. Everything else will be included. Arrays are best for defining exclusions.
{
"fields": ["!foo", "!bar"]
}
The field below will exclude the foo property when the value of bar is greater than 1. The wildcard property can be used if the bar field is nested or repeated throughout the document. An undefined test is assumed to be truthy.
{
"fields": [
{
"glob": "foo",
"negate": true,
"wildcard": false,
"test": ["bar>1"]
}
]
}
FAQs
Q3's access control system integrates with Mongoose for role-based querying. It also connects to `q3-core-rest` to automate authorization in the request and response payloads.
The npm package q3-core-access receives a total of 98 weekly downloads. As such, q3-core-access popularity was classified as not popular.
We found that q3-core-access demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.